package group.Recever;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created by Ulegal on 2017/12/14.
 */

@Component
@RabbitListener(queues = "rabbitmqkey")
public class ReceiverListener {

        @RabbitHandler
        public void process(String hello) {

            System.out.println("Receiver : " + hello);

        }


}
